from google.appengine.ext import db

class Package(db.Model):
  creator=db.UserProperty(required=True)
  name=db.StringProperty(required=True)
  desc=db.TextProperty()
  datecreated=db.DateTimeProperty(auto_now_add=True)
  datemodified=db.DateTimeProperty(auto_now=True)
  
  
class Qtifile(db.Model):
  package=db.ReferenceProperty(Package)
  creator=db.UserProperty(required=True)
  name=db.StringProperty(required=True)
  contents=db.TextProperty()